package com.bum.api.core.exp.om;

import java.util.HashMap;
import java.util.Map;

public class Params extends HashMap<String, String[]> {
	private static final long serialVersionUID = 1L;

	public Params() {
	}

	public Params(Map<String, String[]> map) {
		super(map);
	}

	public String getValue(String key) {
		String[] vals = this.get(key);
		if (vals != null && vals.length > 0) {
			return vals[0];
		}
		return null;
	}

	public String[] getValues(String key) {
		return this.get(key);
	}
}
